Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods


ODValueNameSpace

Superclasses
ODNameSpace --> ODObject
Subclasses
none

An object of the ODValueNameSpace class is a collection of values, each of which has a unique key to identify the value within the collection.

Description

A value name space allows a part to identify a value using a unique key, which can be passed easily between parts. A part can create a value name space to store information about other part editors, such as the part's supported part kinds. The values in a value name space are stored as byte arrays whose buffers can contain values of any types.

Your part can create objects of the ODValueNameSpace class by calling the name-space manager's CreateNameSpace method (page 436), passing the constant kODNSDataTypeODValue for the type of the name space.

Value name spaces can be arranged hierarchically to allow you to search multiple value name spaces for a single key. Searches move from a child value name space to its parent value name space until the entry is found or until there are no more value name spaces to search.

Methods

This section presents summary descriptions of the ODValueNameSpace methods, followed by detailed descriptions in alphabetical order.

CreateIterator
Creates a value iterator for the entries in this value name space.
GetEntry
Searches for an entry with the specified key and, if it exists, gets the value associated with that key.
Register
Adds a new entry to this value name space.

Methods
CreateIterator
GetEntry
Register

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help